package com.woniuxy.background.dao;

import com.woniuxy.background.pojo.Cts;
import com.woniuxy.background.vo.CtsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CtsMapper {
    int deleteByPrimaryKey(Integer cid);

    int insert(Cts record);

    int insertSelective(Cts record);

    Cts selectByPrimaryKey(Integer cid);

    int updateByPrimaryKeySelective(Cts record);

    int updateByPrimaryKey(Cts record);

    List<Cts> queryCtsByPage(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize, @Param("vo") CtsVO vo);

    @Select("select * from cts where tid = #{tid}")
    Cts queryCtsByTid(int tid);
}